import Vue from 'vue'
import VueRouter from 'vue-router'


Vue.use(VueRouter)

const routes = [{
    path: '/',
    redirect: '/map',
    component: () => import('@/views/map/map')
  },
  {
    path: '/map',
    name: 'Map',
    component: () => import('@/views/map/map')
  },{
    path: '/hunan',
    name: 'hunan',
    component: () => import('@/views/map/hunan')
  },{
    path: '/jiangxi',
    name: 'jiangxi',
    component: () => import('@/views/map/jiangxi')
  },
]

const router = new VueRouter({
  mode: 'hash',
  base: process.env.BASE_URL,
  routes
})

export default router